package com.google.coffeeshop.dao.impl;

import com.google.coffeeshop.dao.ConfigurationDAO;
import com.google.coffeeshop.entity.ConfigurationDTO;
import com.googlecode.genericdao.search.Search;


public class ConfigurationDAOImpl extends AbstractBaseDAOImpl<ConfigurationDTO, Integer> implements ConfigurationDAO {

	@Override
	public ConfigurationDTO findByName(String name) {
		Search search = new Search(ConfigurationDTO.class);
		search.setFirstResult(0);
		search.setMaxResults(1);
		search.addFilterEqual("name", name);
		return this.searchUnique(search);
	}

}
